package cn.xfdzx.android.apps.shop.fragment.shop_comments;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.ViewPager;

import java.util.ArrayList;

import butterknife.BindView;
import cn.xfdzx.android.apps.shop.R;
import cn.xfdzx.android.apps.shop.adapter.AllCommentAdapter;
import cn.xfdzx.android.apps.shop.base.BaseMvpFragment;
import cn.xfdzx.android.apps.shop.bean.GoodsBeen;

/**
 * @author gzk
 * @date 2020/3/26 0026
 * description：全部的评价(503）
 */
public class AllFragment extends BaseMvpFragment {


    RecyclerView rvAll;



    @Override
    protected void initView(View view) {
        rvAll=view.findViewById(R.id.rv_part);

        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext());
        linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        rvAll.setLayoutManager(linearLayoutManager);

        rvAll.setAdapter(new AllCommentAdapter(getContext(),new ArrayList<GoodsBeen>()));

    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_part;
    }

    @Override
    public void showLoading() {

    }


    @Override
    public void hideLoading() {

    }

    @Override
    public void onError(Throwable throwable) {

    }

    public static AllFragment newInstance(int userUid) {
        Bundle bundle = new Bundle();
//        bundle.putString("item", "UserPostFragment");
//        bundle.putLong(Constants.UID, userUid);
        AllFragment fragment = new AllFragment( );
        fragment.setArguments(bundle);
        return fragment;
    }



}
